{
  "properties" : { },
  "id" : "0dcc673d01b34e27860c208ec3c27350",
  "script" : null,
  "groupId" : "e7c57e1086a64d09a8c9d615ca57f6fd",
  "name" : "另存为",
  "createTime" : 1727071191780,
  "updateTime" : 1726708634073,
  "lock" : "1",
  "createBy" : "ndmp",
  "updateBy" : "ndmp",
  "path" : "save",
  "method" : "POST",
  "parameters" : [ ],
  "options" : [ ],
  "requestBody" : "{\n    \"id\":\"1801438872488411138\",\n    \"content\":\"测试\"\n}",
  "headers" : [ ],
  "paths" : [ ],
  "responseBody" : "{\n    \"status\": 200,\n    \"message\": \"success\",\n    \"data\": \"保存成功\"\n}",
  "description" : null,
  "requestBodyDefinition" : null,
  "responseBodyDefinition" : null
}
================================
import java.util.UUID;
import java.nio.charset.StandardCharsets;
 import com.kd.ndmp.util.IdUtil

cfgFile = db.selectOne(""" select * from ndmp_net_device_cfg_file where id = #{body.id} """)
cfgFile.id = IdUtil.getSnowflakeNextId()
cfgFile.flag = body.id
cfgFile.file = body.content.getBytes(StandardCharsets.UTF_8)
boolean b = db.table('ndmp_net_device_cfg_file').primary('id').insert(cfgFile)
if(b){
    return "保存成功"
}
return "保存失败"